package com.shop.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Discount implements Serializable {
    private Long id;
    //关联商品ID
    private Long productId;
    //折扣类型
    private Integer discountType;
    //折扣值
    private Integer discountValue;
    //0 停售 1 起售
    private Integer status;

    private LocalDateTime startTime;
    private LocalDateTime endTime;

}
